import React, { useEffect } from 'react'

export default function Son({ count }) {
  useEffect(() => {
    console.log('Son componentDidMount')

    return () => {
      console.log('Son componentWillUnmount')
    }
  }, [])
  return (
    <div>
      Son
      <p>count: {count}</p>
    </div>
  )
}
